package com.zkthink.ceres.order.dto.comment;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

@ApiModel("发表评论")
@Data
public class PublishCommentDTO {
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long mid;
    /**
     * 店铺id
     */
    @ApiModelProperty(value = "店铺id")
    @NotNull(message = "店铺id不能为空")
    private Long storeId;
    /**
     * 主评分
     */
    @ApiModelProperty(value = "主评分 ")
    @NotNull(message = "店铺 不能为空")
    private Integer commentStar;
    /**
     * 商品评价
     */
    @ApiModelProperty(value = "商品评价")
    @NotNull(message = "商品评价不能为空")
    private Integer serviceStar;
    /**
     * 评论内容
     */
    @ApiModelProperty(value = "评论内容")
    @NotEmpty(message = "评论内容不能为空")
    @Length(max = 1024, message = "评论内容长度不能超过1024")
    private String commentText;
    /**
     * 评论图片
     */
    @ApiModelProperty(value = "评论图片")
    @NotEmpty(message = "评论图片不能为空")
    @Length(max = 4096, message = "评论图片长度不能超过4096")
    private String commentImgs;
    /**
     * 是否隐藏 1-隐藏 0-不隐藏
     */
    @ApiModelProperty(value = "是否隐藏 1-隐藏 0-不隐藏")
    @NotNull(message = "是否隐藏 1-隐藏 0-不隐藏不能为空")
    private Boolean hideFlag;
    @ApiModelProperty(value = "订单id")
    private Long chlorderId;
    @ApiModelProperty(value = "商品id")
    private Long productId;
}
